function zebraTable() {
	var counter = 1;

	$("#table tr").each(function() {
		if ($(this).attr('filtermatch') != 'false') {
			if (counter % 2 == 0)
				$(this).css('background-color', '#eeeeee');
			else
				$(this).css('background-color', '#cccccc');

			counter++;
		}
	});
}

function EndRequestHandler() {
	var options = {
		enableCookies: false,
		filteredRows: function() {
			zebraTable();
		}
	};

	$('#table').tableFilter(options);

	zebraTable();
}
$(document).ready(function() {
	EndRequestHandler();

	if (!Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack()) {
		Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
	}
});